<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:faces="http://java.sun.com/jsf/composite/faces/components">
 
    <composite:interface >
    	<!-- Attributes for formItem -->
    	<composite:attribute name="id" type="java.lang.String"/>
	   	<composite:attribute name="label" type="java.lang.String"/>
	   	<composite:attribute name="styleClass" type="java.lang.String"/>
	   	<composite:attribute name="style" type="java.lang.String"/>
	   	<composite:attribute name="labelStyleClass" type="java.lang.String"/>
	   	<composite:attribute name="labelStyle" type="java.lang.String"/>
	   	<composite:attribute name="caption" type="java.lang.String"/>
	   	<composite:attribute name="captionType" type="java.lang.String"/>
	   	
	   	<!-- Attributes for inputItem -->
    	<composite:attribute name="inputStyleClass" type="java.lang.String"/>
    	<composite:attribute name="inputStyle" type="java.lang.String"/>
    	<composite:attribute name="disabled" type="java.lang.Boolean" default="false"/>
    	<composite:attribute name="readonly" type="java.lang.Boolean" default="false"/>
    	<composite:attribute name="value"/>
    	<composite:editableValueHolder name="input" targets="input"/>
    	<composite:attribute name="required" type="java.lang.Boolean" default="false"/>
    </composite:interface>
 
    <composite:implementation >
    	<ui:decorate template="/faces/template/formItem.xhtml">
    		<ui:param name="cc" value="#{cc}" />
		   	<h:inputText id="input" value="#{cc.attrs.value}" style="#{cc.attrs.inputStyle}"
				styleClass="#{cc.attrs.inputStyleClass}" disabled="#{cc.attrs.disalbed}"
				label="#{cc.attrs.label}" readonly="#{cc.attrs.readonly}">
			</h:inputText>
			<rich:message style="display:inline" rendered="#{systemConfig.config.getBoolean('validateMessageAfterInput',true)}" for="input"/>
    	</ui:decorate>
    </composite:implementation>
</ui:composition>